package com.hulk.hyena.project.monitor.job.service;

import com.hulk.hyena.project.monitor.job.domain.ScheduleJob;
import com.hulk.hyena.project.monitor.job.domain.Task;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author hulk
 * @date 2018-09-26 20:53:48
 */
public interface IJobTaskService {
	
	Task get(Long id);
	
	List<Task> list(Task task);
	
//	int count(Map<String, Object> map);
	
	int save(Task taskScheduleJob);
	
	int update(Task taskScheduleJob);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	void initSchedule() ;

	int changeStatus(Task task);

	int runAJobNow(Task task);
	int runNow(Task job);

	int updateCron(Task job) ;
}
